
// 分类等级共三级:
export const CategoryLevel1 = '一线'
export const CategoryLevel2 = '二线'
export const CategoryLevel3 = '三线'

export const CategoryAllLevels = [
  CategoryLevel1,
  CategoryLevel2,
  CategoryLevel3,
]

export const CategoryType_Class = 1 // "类目"
export const CategoryType_Level = 2 // "等级"
export const CategoryType_Brand = 3 // "品牌"

export const CategoryAllTypes = [
  CategoryType_Class,
  CategoryType_Level,
  CategoryType_Brand,
]

export function getCategoryTypeDisplay(value) {
  switch (value) {
    case CategoryType_Class:
      return '类目'
    case CategoryType_Level:
      return '等级'
    case CategoryType_Brand:
      return '品牌'
    default:
      return '未知'
  }
}

export function getCategoryTypeDisplayFull(value) {
  switch (value) {
    case CategoryType_Class:
      return '类目(如: 牙膏)'
    case CategoryType_Level:
      return '等级(如: 一线)'
    case CategoryType_Brand:
      return '品牌(如: 云南白药)'
    default:
      return '未知'
  }
}
